<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script>

        var date = new Date();
        document.write(date + "<br>");
        document.write(date.getTime())
        document.write(date.toLocaleString() + "<br>");

        document.write(date.toLocaleString() + "<br>")
        document.write(date.toLocaleDateString() + "<br>")
        document.write(date.toLocaleTimeString())
    </script>
</head>
<body>

</body>
</html>